home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-09-03 | 2.6 KB | 105 lines | [TEXT/MPS ] |
- #
- # File: USBDDKBuildProject
- #
- # Contains: Build Script for USBDDK
- #
- # Version: xxx put version here xxx
- #
- # Written by: Craig Keithley
- #
- # Copyright: © 1997-1998 by Apple Computer, Inc., all rights reserved.
- #
- set Commands `Directory`Tools:,"{Commands}"
- export Commands
-
- unset BuildTargets
-
- set DebugBuild 0
- export DebugBuild
-
- Set t7 `Date -n`
- Set t8 "`Date -s`"
-
- Open "{Worksheet}"
-
- Echo "#******************************************************************************************************"
- if "{1}" == 'clean'
- Echo "# Clean & Build DDK drivers & examples"
- Echo "# Deleting all files in "{USBDDKObjects}
- echo "Test" >"{USBDDKObjects}Test"
- delete -i -y "{USBDDKObjects}"≈
-
- Echo "# Deleting all files in "{USBDDKReleaseExtensions}
- echo "Test" >"{USBDDKReleaseExtensions}Test"
- delete -i -y "{USBDDKReleaseExtensions}"≈
- else
- if "{1}" == 'full'
- Echo "# Full build all USB drivers"
- else
- Echo "# Build all USB drivers"
- end
- end
-
- if `Exists "{USBDDKTargets}Drivers:"`
- Echo "# …Targets:Drivers folder still exists (no need to create it)"
- else
- NewFolder "{USBDDKTargets}Drivers"
- end
-
- if `Exists "{USBDDKTargets}Utilities:"`
- Echo "# …Targets:Utilities folder still exists (no need to create it)"
- else
- NewFolder "{USBDDKTargets}Utilities"
- end
-
- if `Exists "{USBDDKTargets}Maps:"`
- Echo "# …Targets:Maps folder still exists (no need to create it)"
- else
- NewFolder "{USBDDKTargets}Maps"
- end
-
-
- if `Exists "{USBDDKFolder}Drivers"`
- For i In `Files -af -f -d "{USBDDKFolder}Drivers"` # For all directories within the Drivers folder....
- (Evaluate "{i}" =~ /≈':'≈':'(≈)®1':'/) ∑ dev:null # Get the name of the folder, put in ®1
- Directory "{i}"
- set -e USBDDKDriverPath "{i}"
- set -e USBDDKDriver {®1}
- set exit 0
- execute USBDDKBuildDriver {1}
- End
- End
-
- if `Exists "{USBDDKFolder}Examples"`
- For i In `Files -af -f -d "{USBDDKFolder}Examples"` # For all directories within the Drivers folder....
- (Evaluate "{i}" =~ /≈':'≈':'(≈)®1':'/) ∑ dev:null # Get the name of the folder, put in ®1
- Directory "{i}"
- set -e USBDDKDriverPath "{i}"
- set -e USBDDKDriver {®1}
- set exit 0
- execute USBDDKBuildDriver {1}
- End
- End
-
-
- directory "{USBDDKFolder}"
-
- Set t2 `Date -n`
- Set t3 "`Date -s`"
-
- echo "# Started: "{t0}
- echo "# Completed: "{t3}
- echo "#"
-
- Set t `Evaluate {t2} - {t7}`
- if "{1}" == 'clean'
- Echo "# Time required to Clean & Build all of the drivers: {t} seconds."
- else
- if "{1}" == 'full'
- Echo "# Time required to do a full build all of the drivers: {t} seconds."
- else
- Echo "# Time required to do a build all of the drivers: {t} seconds."
- end
- end
- Echo "#******************************************************************************************************"
-